package com.springboot2.shiro.comm.util;

import org.apache.shiro.crypto.hash.SimpleHash;

/**
 * Utils
 *
 * @author Archx[archx@foxmail.com]
 * at 2018/7/13 22:40
 */
public abstract class Utils {

    public static String password(String str) {
        return new SimpleHash("md5", str, "", 2).toHex();
    }
}
